# -*- coding: utf-8 -*-
# @Time    : 2019/2/25 14:15
# @Author  : yueconger
# @File    : mysql_db.py
import pymysql
from DBUtils.PooledDB import PooledDB


class ConnDB(object):
    def __init__(self):
        self.conPool = PooledDB(
            pymysql,
            8,
            host='127.0.0.1',
            port=3306,
            user='root',
            passwd='mysql',
            db='laws_db',
            charset='utf8'
        )


if __name__ == '__main__':
    db = ConnDB()
